﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace UMLDesigner
{
    public enum Colors
    {
        CLASS_OUTLINE,
        CLASS_FILL,
        SELECT_LINE
    }

    public class Option
    {
        public Option()
        {
            colors = new Dictionary<Colors, Color>();
        }

        public Dictionary<Colors, Color> DefaultColors
        {
            get
            {
                return colors;
            }
        }

        public Font DefaultFont
        {
            get;
            set;
        }

        public Color DefaultFontColor
        {
            get;
            set;
        }

        public Color SelectedLineColor
        {
            get;
            set;
        }

        public Color FocusedLineColor
        {
            get;
            set;
        }

        public Color SelectionRectangleTopLeftColor
        {
            get;
            set;
        }

        public Color SelectionRectangleBottomRightColor
        {
            get;
            set;
        }

        public Color NoteOutlineColor
        {
            get;
            set;
        }

        public Color NoteCornerColor
        {
            get;
            set;
        }

        public Color LineColor
        {
            get;
            set;
        }

        private Dictionary<Colors, Color> colors;
    }

    public class CurrentOption
    {
        private CurrentOption()
        {
        }

        public static CurrentOption Instance
        {
            get
            {
                if (option == null) option = new CurrentOption();
                return option;
            }
        }

        public Option Option
        {
            get;
            set;
        }

        private static CurrentOption option;
    }
}
